from apps.vadmin.op_drf.models import BaseModel
from django.db.models import CharField, IntegerField, BooleanField, TextField


class Kq_Extend_infos(BaseModel):
    kqId = IntegerField(verbose_name='客户Id')
    compName = CharField(max_length=255, verbose_name='公司名称')
    competitor = CharField(max_length=32, verbose_name='竞争对手', blank=True, null=True)
    YearUsage = IntegerField(verbose_name='年用泵量', default=0, blank=True, null=True)
    name1 = CharField(max_length=32, verbose_name='联系人1', blank=True, null=True)
    position1 = CharField(max_length=32, verbose_name='职位1', blank=True, null=True)
    phone1 = CharField(max_length=32, verbose_name='电话1', blank=True, null=True)
    name2 = CharField(max_length=32, verbose_name='联系人2', blank=True, null=True)
    position2 = CharField(max_length=32, verbose_name='职位2', blank=True, null=True)
    phone2 = CharField(max_length=32, verbose_name='电话2', blank=True, null=True)
    name3 = CharField(max_length=33, verbose_name='联系人3', blank=True, null=True)
    position3 = CharField(max_length=33, verbose_name='职位3', blank=True, null=True)
    phone3 = CharField(max_length=33, verbose_name='电话3', blank=True, null=True)
    name4 = CharField(max_length=33, verbose_name='联系人4', blank=True, null=True)
    position4 = CharField(max_length=33, verbose_name='职位4', blank=True, null=True)
    phone4 = CharField(max_length=33, verbose_name='电话4', blank=True, null=True)
    name5 = CharField(max_length=33, verbose_name='联系人5', blank=True, null=True)
    position5 = CharField(max_length=33, verbose_name='职位5', blank=True, null=True)
    phone5 = CharField(max_length=33, verbose_name='电话5', blank=True, null=True)
    name6 = CharField(max_length=33, verbose_name='联系人6', blank=True, null=True)
    position6 = CharField(max_length=33, verbose_name='职位6', blank=True, null=True)
    phone6 = CharField(max_length=33, verbose_name='电话6', blank=True, null=True)
    isIntroduceProduct = BooleanField(verbose_name="是否详细介绍产品", default=False)
    isTryDevice = BooleanField(verbose_name="是否试用机器", default=False)
    isGift = BooleanField(verbose_name="是否赠送小礼物", default=False)
    isInviteStudy = BooleanField(verbose_name="是否邀请客户考察", default=False)
    isQuote = BooleanField(verbose_name="是否报价", default=False)
    isCooperate = BooleanField(verbose_name="是否合作", default=False)
    isEatCustomer = BooleanField(verbose_name="是否宴请客户", default=False)
    isIntroduceCustomerForYou = BooleanField(verbose_name="是否转介绍", default=False)
    extendDesc = TextField(verbose_name='描述', blank=True, null=True)
    classify = CharField(max_length=255, verbose_name='产品类型', blank=True, null=True)

    class Meta:
        verbose_name = '客户拓展信息表'
        verbose_name_plural = verbose_name

    def __str__(self):
        return f"{self.kqId}"
